package test.patterns;

/** Observer role in the Observer pattern

   Responsibilities:
			
   1) To register this object in the Subject
   2) To react whenever the 'update' method is called by
      the subject.

 
   This source code is from the book 
     "Flexible, Reliable Software:
       Using Patterns and Agile Development"
     published 2010 by CRC Press.
   Author: 
     Henrik B Christensen 
     Computer Science Department
     Aarhus University
   
   This source code is provided WITHOUT ANY WARRANTY either 
   expressed or implied. You may study, use, modify, and 
   distribute it for non-commercial purposes. For any 
   commercial use, see http://www.baerbak.com/
*/

public interface ObsObserver {
  /** Perform processing appropriate for the changed state.
   * Subject invokes this method every time its state changes.
   */
  public void update();
}